<?php

class address_unit_turn extends entity
{
    public $structs = [
        'number' => '',
        'address_unit_id' => '',
        'address_slot_id' => '',
    ];

    public static $entity_display_name = '地址单位顺序';
    public static $entity_description = '地址单位顺序';

    public static $struct_types = [
        'number' => 'number',
        'address_unit_id' => 'number',
        'address_slot_id' => 'number',
    ];

    public static $struct_display_names = [
        'number' => '序位',
        'address_unit_id' => '地址单位ID',
        'address_slot_id' => '地址槽ID',
    ];
public static $struct_descriptions = [
        'number' => '序位',
        'address_unit_id' => '地址单位ID',
        'address_slot_id' => '地址槽ID',
    ];

    public static $struct_formats = [
        
    ];

    public static $struct_format_descriptions = [
        
    ];

    public function __construct()
    {/*{{{*/
        $this->belongs_to('address_unit');
        $this->belongs_to('address_slot');
        $this->has_many('address_unit_values', 'address_unit_value');
    }/*}}}*/

    public static function create()
    {/*{{{*/
        return parent::init();
    }/*}}}*/

}
